﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    @Html.GenerateAdminStyles()
    <script type="text/javascript">
        var siteRoot = '@Url.Content("~/")';
    </script>
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/ckeditor/ckeditor.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/ckeditor/adapters/jquery.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.fancybox.pack.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.uploadify.js")" type="text/javascript"></script>
    @Html.GenerateAdminScripts()
</head>
<body>
    @Html.Partial("AdminShortcuts")
    @Html.Action("DatabaseNotice", "Admin", new { Area = "Admin" })
    <div id="menu">
        @if (Request.IsAuthenticated)
        {
            <ul id="sub-nav">
                @Html.AdminLink("Dashboard", "AdminIndex", "Index", "Admin", "~/Content/Images/dashboard.png")
                @Html.AdminLinkWithSubmenu("Posts", "AdminPosts", "ManagePosts", "Post", "~/Content/Images/manageposts.png", "~/Content/Images/manageposts.png", "~/Content/Images/post.png")
                @if (User.IsInRole("SuperAdmin"))
                {
                    @Html.AdminLink("Categories", "AdminCategories", "ManageCategories", "CategoryAdmin", "~/Content/Images/categories.png")
                    @Html.AdminLink("Tags", "AdminTags", "ManageTags", "TagAdmin", "~/Content/Images/tags.png")
                    @Html.AdminLink("User Content Mgmt.", "AdminUserManagement", "UserManagement", "UserAdmin", "~/Content/Images/user_management.png", "User Content Management")
                    @Html.AdminLink("Settings", "AdminSettings", "Settings", "Admin", "~/Content/Images/settings.png")
                    @Html.AdminLink("Clear cache", "AdminClearCache", "ClearCache", "Admin", "~/Content/Images/settings.png")
                }
                @if (User.IsInRole("Admin") || User.IsInRole("SuperAdmin"))
                { 
                    @Html.AdminLink("Video manage", "VideoManager", "Index", "Video", "~/Content/Images/settings.png")
                }
                @Html.AdminLink("My Profile", "AdminUpdateProfile", "UpdateProfile", "Admin", "~/Content/Images/profile.png")
            </ul>
        }​
    </div>
    <div id="restore" class="restore-menu init-state">
        <span class="restore-link"><a href="#" id="restoreMenu" class="restore-link-tag">show</a></span>
    </div>
    <div id="content" class="content-actual">
        @RenderBody()
    </div>
</body>
</html>
